import { createRouter, createWebHistory } from 'vue-router'
import routes from './routes'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      name: 'layout',
      path: '/',
      component: () => import('../layout/layoutHome.vue'),
      children: [...routes]
    },
    {
      name: 'FormEditor',
      path: '/form-editor',
      component: () => import('../form-editor/form-editor.vue')
    }
    // {
    //   name: 'json-editor',
    //   path: '/json-editor',
    //   component: () => import('../vue-editor/editor/Editor.vue')
    // }
  ]
})

export default router
